import request from '../util/request'

// 查询预约信息
export function frontDeskGetBook (data) {
  return request({
    url: '/hospital-system/front-desk/get-book',
    method: 'post',
    data: {
      currentPage: data.currentPage,
      pageSize: data.pageSize,
      status: data.status,
      uuid: data.uuid,
      hospitalUuid: data.hospitalUuid,
      userName: data.userName,
      userIdCard: data.userIdCard,
      doctorName: data.doctorName
    }
  })
}

// 前台修改预约状态
export function frontDeskUpdateBook (data) {
  return request({
    url: '/hospital-system/front-desk/update-book',
    method: 'post',
    data: {
      uuid: data.uuid,
      hospitalUuid: data.hospitalUuid
    }
  })
}

// 前台删除预约状态
export function frontDeskDeleteBook (data) {
  return request({
    url: '/hospital-system/front-desk/delete-book',
    method: 'post',
    data: {
      uuid: data.uuid,
      hospitalUuid: data.hospitalUuid,
      deleteMessage: data.deleteMessage
    }
  })
}
